const path = require('path');
const CompressionPlugin = require("compression-webpack-plugin")
module.exports = {
    publicPath: '/cubeorderapp_dev03/',
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src'),
                "@css": path.resolve(__dirname, 'src', 'css') //引入需要加~
            }
        },
        plugins: [
            new CompressionPlugin({
                test: /\.js$|\.html$|.\css/, //匹配文件名
                threshold: 10240,//对超过10k的数据压缩
                deleteOriginalAssets: false //不删除源文件
            })
        ]
    },
}